package com.example.app;

public class UserOperationException extends Exception {
	private static final long serialVersionUID = 5643290424552765099L;
	
	private int errorCode = 0;
	
	public UserOperationException(int errorCode, String errorMessage, Throwable cause) {
		super(errorMessage, cause);
		this.errorCode = errorCode;
	}
	
	public UserOperationException(int errorCode, String errorMessage) {
		this(errorCode, errorMessage, null);
	}
	
	public UserOperationException(String errorMessage) {
		this(-1, errorMessage, null);
	}
	
	public int getErrorCode() {
		return errorCode;
	}
}
